// MainWnd.h: interface for the CMainWnd class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(MAINWND_H_INCLUDED)
#define MAINWND_H_INCLUDED

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "ximage/ximage.h"

/////////////////////////////////////////////////////////////////////////////
// CMainWnd
// Encapsulates the main window
//
class CMainWnd  
{
public:
	CMainWnd();
	virtual ~CMainWnd();
	
	HWND m_hWnd;
	HGLRC m_hRC;		// Handle to RC
	GLfloat m_fAngle;	// Rotation angle of the cube

	void DrawScene();
	void KillScene();
	void InitScene();	

	void GL3DWall(BOOL bSelect = FALSE);

	CxImage m_Image;

	GLuint m_tid[10];

	GLuint	m_bkid;

	bool load(const char* szFile, GLuint& tid, DWORD dwFormat);

	GLfloat	m_trf[3];

	void Pick(int x, int y);

	GLuint	m_sel;
};

#endif // !defined(MAINWND_H_INCLUDED)
